package cn.cmeizu.spring6.iocxml.auto.controller;

import cn.cmeizu.spring6.iocxml.auto.service.UserService;

/**
 * @author cmeizu
 * @date 2023/2/9 22:58
 */
public class UserController {
  public void setUserService(UserService userService) {
    this.userService = userService;
  }

  /**
   * 定义service属性
   */
  private UserService userService;

  public void testController() {
    System.out.println("执行controller的方法");
    userService.addUserService();
  }
}
